package com.njzxw.yoga.yogaApi.bean;

import com.njzxw.fs.commonutil.annotation.ValidInsert;
import com.njzxw.fs.commonutil.annotation.ValidUpdate;
import com.njzxw.fs.commonutil.bean.BaseBean;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.*;
import java.util.List;

@Setter
@Getter
@ToString(callSuper = true)
public class TeacherAttrBean extends BaseBean {

    @ValidInsert
    @ValidUpdate
    @NotBlank(message = "老师id不可为空",groups={Insert.class,Update.class,Save.class})
    public String manage_id;


    @ValidInsert
    @ValidUpdate
    @NotNull(message = "是否支持私教不可为空",groups={Insert.class,Update.class,Save.class})
    public String support_ptrainer;

    @ValidInsert
    @ValidUpdate
    public String ptrainer_scheduling;

    @ValidInsert
    @ValidUpdate
    public String class_type;

    @ValidInsert
    @ValidUpdate
    @Pattern(regexp = "((\\-|\\+)?\\d+(\\.\\d+)?)|(\\s*)",message = "查看会员电话",groups={Insert.class,Update.class,Delete.class,QueryPage.class,Save.class})
    public String see_tel;

    @ValidInsert
    @ValidUpdate
    public String limit_classes;

    @ValidInsert
    @ValidUpdate
    public String classes;

    @ValidInsert
    @ValidUpdate
    @NotBlank(message = "团课费用分不可为空",groups={Insert.class,Update.class,Save.class})
    public String league_fee;

    @ValidInsert
    @ValidUpdate
    public String limit_attend_classes;

    @ValidInsert
    @ValidUpdate
    public String attend_classes;

    @ValidInsert
    @ValidUpdate
    public String teacher_info;

    @ValidInsert
    @ValidUpdate
    @NotBlank(message = "底薪不可为空",groups={Insert.class,Update.class,Save.class})
    public String price;

//    @ValidInsert
//    @ValidUpdate
//    @NotBlank(message = "商户id不可为空",groups={Insert.class,Update.class,Save.class})
//    public String merchant_id;

//    @ValidInsert
//    @ValidUpdate
//    @NotBlank(message = "店铺id,多个使用逗号分隔不可为空",groups={Insert.class,Update.class,Save.class})
//    @Size(max = 200,min = 0,message = "店铺id,多个使用逗号分隔最大长度不能超过200",groups={Insert.class,Update.class,Delete.class,QueryPage.class,Save.class})
//    public String shop_id;

    public String oper_date;

    public String max_oper_date;

    public String min_oper_date;

    @ValidInsert
    @ValidUpdate
    public String update_oper_id;

    @ValidInsert
    @ValidUpdate
    public String update_oper_date;

    public String max_update_oper_date;

    public String min_update_oper_date;
    @ValidInsert
    @ValidUpdate
    @Pattern(regexp = "((\\-|\\+)?\\d+(\\.\\d+)?)|(\\s*)",message = "私教课授课百分比必须为数字或为空",groups={Insert.class,Update.class,Delete.class,QueryPage.class,Save.class})
    public String private_classes;


    public interface Insert{}

    public interface Update{}

    public interface Delete{}

    public interface QueryPage{}

    public interface QueryId{}

    public interface Save{}

}